package com.wn.class30.entity;

import java.io.Serializable;

/**
 * business
 * @author 
 */
public class Business implements Serializable {
    /**
     * 商家id
     */
    private Integer businessId;

    /**
     * 商家名字name
     */
    private String businessName;

    /**
     * 商家电话
     */
    private String businessTel;

    /**
     * 商家地址
     */
    private String businessAddr;

    /**
     * 商家状态
     */
    private Integer businessStatus;

    /**
     * 精度
     */
    private Double longitude;

    /**
     * 维度
     */
    private Double latitude;

    /**
     * 店铺标志
     */
    private String businessImg;

    /**
     * 带间隔符地址
     */
    private String longBusinessAddr;

    /**
     * 商家付款二维码地址
     */
    private String businessQrcode;
    private Double distance;

    private static final long serialVersionUID = 1L;

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    public String getBusinessTel() {
        return businessTel;
    }

    public void setBusinessTel(String businessTel) {
        this.businessTel = businessTel;
    }

    public String getBusinessAddr() {
        return businessAddr;
    }

    public void setBusinessAddr(String businessAddr) {
        this.businessAddr = businessAddr;
    }

    public Integer getBusinessStatus() {
        return businessStatus;
    }

    public void setBusinessStatus(Integer businessStatus) {
        this.businessStatus = businessStatus;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public String getBusinessImg() {
        return businessImg;
    }

    public void setBusinessImg(String businessImg) {
        this.businessImg = businessImg;
    }

    public String getLongBusinessAddr() {
        return longBusinessAddr;
    }

    public void setLongBusinessAddr(String longBusinessAddr) {
        this.longBusinessAddr = longBusinessAddr;
    }

    public String getBusinessQrcode() {
        return businessQrcode;
    }

    public void setBusinessQrcode(String businessQrcode) {
        this.businessQrcode = businessQrcode;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Business other = (Business) that;
        return (this.getBusinessId() == null ? other.getBusinessId() == null : this.getBusinessId().equals(other.getBusinessId()))
            && (this.getBusinessName() == null ? other.getBusinessName() == null : this.getBusinessName().equals(other.getBusinessName()))
            && (this.getBusinessTel() == null ? other.getBusinessTel() == null : this.getBusinessTel().equals(other.getBusinessTel()))
            && (this.getBusinessAddr() == null ? other.getBusinessAddr() == null : this.getBusinessAddr().equals(other.getBusinessAddr()))
            && (this.getBusinessStatus() == null ? other.getBusinessStatus() == null : this.getBusinessStatus().equals(other.getBusinessStatus()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getBusinessImg() == null ? other.getBusinessImg() == null : this.getBusinessImg().equals(other.getBusinessImg()))
            && (this.getLongBusinessAddr() == null ? other.getLongBusinessAddr() == null : this.getLongBusinessAddr().equals(other.getLongBusinessAddr()))
            && (this.getBusinessQrcode() == null ? other.getBusinessQrcode() == null : this.getBusinessQrcode().equals(other.getBusinessQrcode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBusinessId() == null) ? 0 : getBusinessId().hashCode());
        result = prime * result + ((getBusinessName() == null) ? 0 : getBusinessName().hashCode());
        result = prime * result + ((getBusinessTel() == null) ? 0 : getBusinessTel().hashCode());
        result = prime * result + ((getBusinessAddr() == null) ? 0 : getBusinessAddr().hashCode());
        result = prime * result + ((getBusinessStatus() == null) ? 0 : getBusinessStatus().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getBusinessImg() == null) ? 0 : getBusinessImg().hashCode());
        result = prime * result + ((getLongBusinessAddr() == null) ? 0 : getLongBusinessAddr().hashCode());
        result = prime * result + ((getBusinessQrcode() == null) ? 0 : getBusinessQrcode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", businessId=").append(businessId);
        sb.append(", businessName=").append(businessName);
        sb.append(", businessTel=").append(businessTel);
        sb.append(", businessAddr=").append(businessAddr);
        sb.append(", businessStatus=").append(businessStatus);
        sb.append(", longitude=").append(longitude);
        sb.append(", latitude=").append(latitude);
        sb.append(", businessImg=").append(businessImg);
        sb.append(", longBusinessAddr=").append(longBusinessAddr);
        sb.append(", businessQrcode=").append(businessQrcode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public Double getDistance() {
        return distance;
    }

    public void setDistance(Double distance) {
        this.distance = distance;
    }
}